from selenium import webdriver
from time import sleep
from selenium.webdriver.common.by import By
driver=webdriver.Edge()
driver.maximize_window()
sleep(2)
driver.get('https://www.baidu.com/')
sleep(2)
driver.implicitly_wait(5)
driver.find_element(By.XPATH,'//*[@id="kw"]').send_keys('自动化测试')
sleep(2)
driver.find_element(By.XPATH,'//*[@id="su"]').click()
sleep(2)
